package com.uplooking.pms.system.service.impl;

import com.uplooking.pms.system.entity.Student;
import com.uplooking.pms.system.mapper.StudentMapper;
import com.uplooking.pms.system.service.IStudentService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yzb
 * @since 2018-06-11
 */
@Service("StudentServiceImpl")
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService {

	@Autowired
	private StudentMapper stumap;
	
	@Override
	public boolean add(Student student) {
		
		return stumap.add(student)>0?true:false;
	}

	@Override
	public List<Student> findByName(String name) {
		
		return stumap.findByName(name);
	}
	
}
